Did you copy the Registry API functions into the Module too?
It works fine here.