Add a global registry and associated functions for lookup etc.