Prepare replace.