Add task funtionality