Update to handle events for Processing 2