Main task creation function is now inline