Slight refactoring for clarity.