Profit checker refactoring.