Implemented Events. Added "online" mode for near real time processing.