Thanks Adam for the response
I have managed to get this to work and posted the solution on the following thread