Generalize replaceWithTemplate, start time Maybe