Remove duplication.
Remove more duplication.
Fix typo in event name.
Add more documentation.