Removed an unneccessary temporary
Added support for deleting tasks