Event processing.