Thanks 5TonsOfFlax, I decided to use a seperate class for this, it works well.