Electric current flows through a circuit only when it is