Added deletion and some changes in create task.