Removed _publish_event() funtion as unnecessary