Added more options to handle loading resources.