Correctly pass through callback parameter of task function to subtasks