Add method registerExtensionOnce