Added name replacements.

And renamed prepare to replace.