Thanks guys, appreciate the help. Managed to get it all working, the error handling was definitely a good call.