Update task functionality.