Made a small change to the task creation