Added a publish event
Event handlers returning state
Added dummy handlers to satisfy the compiler