Fixed switch sequence function