Isn't it annoying, when, after staring at a problem for a considerable time, you finally ask a question on a forum and almost immediately spot the answer for yourself.
I have now found the 'RelatedParameter' and have sorted things out (and I'm feeling like an idiot)