Replicator state machine