Very clunky but works.