Added autoload function.