Fixed indentation and removed trailing whitespace