Implemented a state machine approach for HashTree synch