Refactored to move futures into RaftLog