Okay, so I kept at this and found where I was going awry.
Basically quite often it takes a few seconds for a participant to come up in the participants list.
So I am now checking every four seconds until I locate the correct participant and this is working fine.