Fix initialization - I broke it by moving the locateRfromRegistry function