Script on switches