Added instance variables for all event handlers.