Add recipient replacement function