Added constants check to limit run to debug environment.