Added hash method for torrent.