Lots of changes.  Total reworking of event sequence generation (still
work in progress).