Refactored a big chunk of the code. Values are now registry based, similar to tags.