DRYing up code. Trying to be like doubleshot but crying on the inside =(