Pass StateMachine to guard

Guards are awesome, but pretty useless without the data :)

| Q | A |
| -------------  |------|
| Test Pass? | y     |
| License      | MIT |