Changing env flags to read only as per suggestion from Howard.