Reindented a lot of code.