Store switches as a hash instead of an Array