Converted tabs to 4 spaces. Moved opening braces to the line after the function declaration.