Changed the way local resources are discovered