Revised message and event system.