Changed loading resources from file