Fixed indentation and syntax errors