Add a function for making subsitutions