Add function removing a task