Altered check for production mode