Added create task functionality