Update to use new Deluge API