These lines are all the same, could this not be DRYed up a bit?