Handler state machine taking shape
Kinda sorta working almost!