Added task creation functionality