Got switches working