Removed unused events.
Changed variable name.