Code before refactoring.