How does the resistance affect the current in a circuit?