Added cue events & automatic sorting.