Added autoranging implementation