Updated scripts and code to use DEV or PROD.