Only fish out the task function once