Use events.
Merge pull request #184 from csmith/master

Use events.