The current state machine is fairly large and baseline states are not necessarily correct. Actually the instructions by VP are not 100% clear. at least to me.
It would be much easier if the baseline signal is separated into another state machine and checked separately.