Refactored, introducing descriptive helper methods.