DRYer code.
DRYer code, smaller functions.