Altered to allow both positive and negative gauges