What can a resistor control