Figured out a better way for autoloading