Modify torrents download function