Fixed syntax errors due to not using IDE