Added sandbox environment detection