Dirty but works.