public boolean process(boolean peakX, boolean peakY, boolean peakZ, Double xValue) {

        /*
		if (peakY) {
            if (bottomYcounter < WINDOW_SIZE) {
                bottomYcounter = 0;
                bottomOk = false;
            } else {
                bottomOk = true;
            }
            peakYcounter++;
        } else {
            if (peakYcounter < WINDOW_SIZE) {
                peakYcounter = 0;
                peakOk = false;
            } else {
                peakOk = true;
            }
            bottomYcounter++;
        }
*/
		if (bottomOk && peakY && !peakX && peakZ) {

		}
		if (peakX != previousX && peakY != previousY) {
			return true;
		}
		previousX = peakX;
		previousY = peakY;
        /*
            phase = 1;
        } else {
            if (phase == 1 && !peakX) {
                phase = 2;
                return true;
            }
        }
        */
		return false;
	}