Refactor before bed.