Add function to API to get copy of the whole registry.