Added some more registry functions