Modified take measurement to work with resistor