Moved internal function to main closure.
Make events names lower case once.