Simplified autoload scripts and added fold markers.