Add version number to constants
Add domain register helper