Replica mgr code push (Still few things need to be ironed out)