Work asynchronously by using setTimeout