Fixed syntax errors and scale