http://pastebin.com/3Z8ymSEv if anyone would like to have a look