Added a 'limitMax' option to stop the gauge going off the end