Added the setTimeTag function to set an event tag.
This allows us to schedule events in the main.