Experimental state machine using F# agent