Minor spelling mistake
Maintain modified flag of time_map - only write when modified == true