Changed Type from RegistryValueType to uint