Refactor for readability.