Nevermind, I was making this way too difficult and have now corrected it.

Thanks