public static Object loadData(File inputFile) {
		Object returnValue = null;
		try {
			if (inputFile.exists()) {
				if (inputFile.isFile()) {

					ObjectInputStream readIn = new ObjectInputStream(new FileInputStream(inputFile));
					returnValue = readIn.readObject();
					readIn.close();
				} else {
					System.err.println(inputFile + " is a directory.");
				}
			} else {
				System.err.println("File " + inputFile + " does not exist.");
			}
		} catch (ClassNotFoundException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}
		return returnValue;
	}