Cleaned up the code with better indentation.

Please try to indent your code correctly. Much easier to read for others
and when searching for errors.