private int pieceLength(int pieceIndex) {
		int length = 0;
		if(pieceIndex == this.torInfo.piece_hashes.length - 1){
			length = this.torInfo.file_length % this.torInfo.piece_length;
		}
		if(length == 0)
			length = this.torInfo.piece_length;
		return length;
	}