Refactor for better readability.