PS. change LESS_THAN to < in the above post.

I had to change it because the code kept getting screwing up as it thought the <and> meant some special part

cheers,
Paul