Refactored events into own package.