Script to create the aligned_events file.