Created core._add_torrent_file used by exported functions