Added the ability to update an existing task