private int calculateValue(final File inputFile) {

		int hammingDistance = 0;

		BufferedReader inBuffReader = null;
		try {

			inBuffReader = new BufferedReader(new FileReader(inputFile));

			// Counter looping through the first response
			int counter1 = 0;
			int counter = 0;
			int check = 0;
			int got;
			while (((got = inBuffReader.read()) > 0) && (counter < MAX_CHARS)) {

				// If we are passed "--jbrofuzz-->\n" in the file
				if (check == END_SIGNATURE.length()) {

					if (counter1 >= firstSet.length()) {
						// For each extra character add to the distance
						hammingDistance++;

					} else {
						// The current character is not equal to the
						// one in the buffer, increment
						if ((char) got != firstSet.charAt(counter1)) {
							hammingDistance++;
						}
					}

					counter1++;
				}
				// Else find "--jbrofuzz-->\n" using a counter
				else {
					// Increment the counter for each success
					if (got == END_SIGNATURE.charAt(check)) {
						check++;
					} else {
						check = 0;
					}
				}

				counter++;

			}
			inBuffReader.close();

		} catch (final IOException e1) {
			System.out.println("An IOException occurred.");
		} finally {

			IOUtils.closeQuietly(inBuffReader);

		}

		return hammingDistance;
	}