public double[] readDoubleSerialized(String fileName) {
		double[] arrayToReturn = new double[3];
		FileInputStream fileIn;
		//Read in file from fileName.ser
		try {
			fileIn = new FileInputStream(fileName + ".ser");
			ObjectInputStream in = new ObjectInputStream(fileIn);
	        arrayToReturn = (double[]) in.readObject();
	        in.close();
	        fileIn.close();
	    // Got an error, set all values to defaults
		} catch (IOException e) {
			arrayToReturn[0] = 5; // Default settings
			arrayToReturn[1] = 2;
			arrayToReturn[2] = 0;
			System.out.println("Could not read from " + fileName + ".ser: " + e);
		} catch (ClassNotFoundException e) {
			// TODO Auto-generated catch block
			arrayToReturn[0] = 5;
			arrayToReturn[1] = 2;
			arrayToReturn[2] = 0;
			System.out.println("Could not read from " + fileName + ".ser: " + e);
		}
		
		return arrayToReturn;
	}