Revert "Convert state machine to a single boolean."
Revert "Convert state machine to a single boolean."

This reverts commit f4f277b60a149af221e3e6a495da432488da08ee.

colinmccabe/core,isaacsanders/core,bradurani/core,Pisys/core,rgrempel/core,eeue56/core,martinos/core,Dandandan/core,manleyjster/core,bradurani/core,krisajenkins/core,ThomasWeiser/core,slava-sh/core,suryagaddipati/core,vilterp/core,avh4/elm-lang-core,laszlopandy/core,rick68/core,rgrempel/core,simonh1000/core,vilterp/core,ThomasWeiser/core,deadfoxygrandpa/core,martinos/core,eeue56/core,alexiamcdonald/elm-core,avh4/elm-lang-core,manleyjster/core,laszlopandy/core,krisajenkins/core,alexiamcdonald/elm-core,simonh1000/core,rick68/core,Pisys/core,suryagaddipati/core,colinmccabe/core,deadfoxygrandpa/core,isaacsanders/core,Dandandan/core