Added cancel to tasks