Replace tasks with async