Make reset state behavior configurable by env variable.