Added new method of registering extensions