Bad-ass refactoring.