Resolved a bunch of syntax errors