Added task functionality