Janky, but works.