Updated custom event autoloader to comply to strict standards.