Adding switches for appMode and releaseMode.