Add the time sequencer. Fix a couple of bugs.