Fixed indentation and missing braces.