Change switches to be global