Running replacements

This section is still to be written.