Removed extra open brace from if-statement. Naturally, this caused a parse error.