Modified registry.c and registry.h to look like original one.