Add registerExtension method