Delete curves and re-create to prevent unwanted behaviour from other MM patches running before.

Use replace (%) on added values to prevent duplicates if another patch adds them before we run.
Merge pull request #6 from Taverius/master