Added some print statements in replicator to analyze control flow