How to Use the Events Register