Added an event pub/sub system.