Refactored a bit of code that was offensive to my eyes.