Programming can be really annoying when you are having a dense moment. I was searching for a syntax error for probably two hours all in all only to have someone else tell me I was missing a bracket somewhere. Sigh.