Simple program to generate test event scenarios.
Fixed a bug in event scheduling.