Added code so that if there are no genuine replacements required, then dont make the replacement.
Update to docs