Refactored for beauty.