Utility and refactoring.