All the code for reading in the registy is done, but I have a malloc'd