Process events.