added flags to turn on/off simulation of maintenance mode and quota exception.