Hopefully a very simple solution to this. I have tried the solutions for two similar questions on SO, but these haven\'t worked for me.
Essentially I have a process w