Change resource loading to internal