Thanks for this, will play around with it and clean it up a bit.