FIX: Object::add_extension() is deprecated in 3.1