Fixed whitespace/indentation and brackets to be consistent.