Added version 3 support for addons.add