Custom implementation of Raft API.