What does a capacitor do?