I had problems with hardcoded paths. I then had trouble with substitute and substitute in place. Is there a simpler way to do this?