Minor changes to load resources from memory