Add a substitute helper function.