Pulled code from raft