Creating registry to hold references