Move most functionality to autoload