There has GOT to be an easier way to do this...