   lcd.setCursor(0, 0);
   lcd.print(F("Calibrating..."));
   turnMotor2(95, 5);
-  delay(200);
+  //delay(200);
   turnMotor4(35, 7);
-  delay(200);
+  //delay(200);
   for (byte i = 0; i<9; i++) {
-    turnMotor1(Motor_1_ScanAngles[i], 4);
-    turnMotor4(Motor_4_ScanAngles[i], 7);
-    delay(100);
+    turnMotor1(pgm_read_byte(&(Motor_1_ScanAngles[i])), 4);
+    turnMotor4(pgm_read_byte(&(Motor_4_ScanAngles[i])), 7);
+    //delay(200);
     scan_item();
     delay(100);
     if (serialOutput == true) {

  Serial.begin(9600);
  
  turnMotor1(89, 3);
  delay(standardDelay);
  turnMotor3(90, 2);
  delay(standardDelay);
  turnMotor2(105, 5);
  delay(standardDelay);
  turnMotor4(35, 7);
  delay(standardDelay);

  // Setting frequency-scaling to 20%
  //digitalWrite(S0, HIGH);

    }
  }
  motor_4_Position = limitedDegree;
  delay(standardDelay);
}


//Method for pushing the cube
void push() {
  turnMotor2(105, 5);
  //delay(standardDelay);
  turnMotor3(45, 2);
  //delay(standardDelay);
  turnMotor2(118, 5);
  //delay(standardDelay);
  turnMotor3(95, 2);
  //delay(standardDelay);
  turnMotor2(105, 5);
  //delay(standardDelay);
  turnMotor3(90, 2);
  //delay(standardDelay);
}


//Method for turning the cube ClockWise
void turnCubeCW() {
  turnMotor2(95, 5);
  //delay(standardDelay);
  turnMotor1(5, 3);
  //delay(standardDelay);
  turnMotor2(105, 5);
  //delay(standardDelay);
}


//Method for turning the cube CounterClockWise
void turnCubeCCW() {
  turnMotor2(95, 5);
  //delay(standardDelay);
  turnMotor1(171, 3);
  //delay(standardDelay);
  turnMotor2(105, 5);
  //delay(standardDelay);
}


//Method for turning the cube straight
void turnCubeStraight() {
  turnMotor2(95, 5);
  //delay(standardDelay);
  turnMotor1(88, 3);
  //delay(standardDelay);
  turnMotor2(105, 5);
  //delay(standardDelay);
}


