added async task with a callback after completion of the task.