Version with working simulations for two-node and three-node setups.