Use int rather than hex for id.
Add stubs for reference and sanitization consumers.