You do this 4 times, perhaps split it out into a function?