Fixed a slew of syntax errors