Adds register_extension