More robust checking for production environment.