Opimize Events.java