The event consumer