DRYed up the methods