Added readRaftState in the correct place