Made some code easier to understand.