Added support for autoloading custom named events.