Refactor to track completion of tasks instead of deleting them