Make EventListener methods synchronized