Adds autoloader functionality.