Changed record_event from private to public