Added psuedo code for replicating log