Horrible hack to make this work.