Correct indentation and remove unused variables.