Pseudocode for Substance.Replicator API.