Add a registry. Modify allParametersSpec to use refactored code