Reverted to original state of stage env check.