Making your code asynchronous