UPDATED: Allowed to use subreplacements