Added consensus code!