allowing globalmax to be configurable