FSM Miner example code without communication