Added task functionality backend