Reindented parts to be conform to the rest of the code.