Rules for Reaching Consensus