Handle async tasks