Maintaining the todo list