Sequencer now can loop. Fixed a bug in event dequeueing.