This is a hack. This is not yet used in the real code and I wanted it part of the binary so I could use it from the tests.