Prepare infrastructure for events.