Fixes #4, and introduces 'time' to events.