Modified asset loading code.