I have a program that it is basically a state machine that opens and closes different valves with certain time delays. I need to implement another state machine in the same program that does the the same except two states of the implemented state machine and I need to be able to switch between them. What is the best way to go about it?