Changed how resources are loaded.