Add callback to complete async tasks