Add task functionality corrected!