First draft of autoloader.