Refactoring gui things for profit.