public byte[] getBlockData(int index, int offset, int length){
		Piece p = this.pieces.get(index);
		if(p == null)
			return null;
		byte[] data = p.getBlock(offset, length);

		this.uploadedTotal+=data.length;
		return data;
	}