Initial version for use in go-pronto.