Preparing events.