Implementing the track editing mode