Added function to mark a task done