Some code to facilitate handling of torrents in Download Master