There has got to be a better solution than this...