Update plugin to use new sdk