Removing repetition and fixing indentation.
Fix indentation