Implemented autoloading of resources, autogenerating hal