public BackupChunk getChunk(byte[] fileID, int chunkNo) {
		String recID = Packet.bytesToHex(fileID);
		for(BackupChunk chunk : backedUpChunks) {
			String comID = Packet.bytesToHex(chunk.getFileID());
			if(comID.equals(recID) && chunk.getChunkNo() == chunkNo) {
				byte[] body = new byte[BackupChunk.maxSize];

				try {
					@SuppressWarnings("resource")
					BufferedInputStream reader = new BufferedInputStream(new FileInputStream("storage/" + chunk.getFilename()));
					int bytesRead = 0;

					bytesRead = reader.read(body,0,BackupChunk.maxSize);
					byte[] arr = null;
					if(bytesRead > 0)
						arr = Arrays.copyOfRange(body, 0, bytesRead);
					
					return new BackupChunk(chunk.getFileID(), chunk.getChunkNo(), arr, chunk.getFilename(), bytesRead, chunk.getWantedReplicationDegree(), chunk.getRepDeg(), null);
				} catch (IOException e) {
					e.printStackTrace();
					return null;
				} 
			}
		}
		
		return null;	
	}