Make TaskFn callable