Adding the state machine to be used for preprocessing