Fixing syntax errors and updating conversion script