Nasty reflection being used. Need to find a better way!