It's late here, I'm going to bed, perhaps I'll write the code tomorrow when I'm at my laptop and not on my phone.