Add task functionality