Add environment check stuff for resources.