First steps for consensus algorithm