Added functionality to add new tasks