Refactoring for readability.