Greatly DRYs up the code