Do we need these global variables? I think that this configuration will be directly passed to an object which calculates the limits and there is no need to keep it here.