Sort:  

Thanks, it's been a challenge writing it and then re-writing it (the first version was all over the place and tough to follow).