Add and use LibRegistry.