Now writes end_of_track correctly.