Probably an easier way to do this