Updates to modepatt switch