If you're going to refactor this, it's begging for a for comprehension