Separate a function.
Changed the indentation.