       } else if ( moveItemStepper.distanceToGo() == 0 && moveItemStepperIsRunning ) {
         moveItemStepperIsRunning = false;
         fsmState = STATE_RAISE_TOP_FLAP;
- //delay( 1000 );       
       } else {
         moveItemStepper.run();
         fsmState = STATE_RELEASE_FLAP;

  Serial.begin( 9600 );

  // Initialize components
  baseShield.begin();  
  //infraredReceiver.begin();  
  ultraSensor.begin();

  //moveItemStepper.setSpeed( 12 );
  moveItemStepper.setMaxSpeed( 6400.0 );
  moveItemStepper.setAcceleration( 38100.0 );

  servoDriver.Servo1_begin();


      Serial.print( "distanceToGo = "); Serial.println( moveItemStepper.distanceToGo() );
      Serial.print( "speed = "); Serial.println( moveItemStepper.speed() );*/
      if ( stopMicroSwitch == HIGH && moveItemStepper.distanceToGo() == 0 ) {
        moveItemStepper.move( moveItemInSteps );
        Serial.print( "targetPosition = "); Serial.println( moveItemStepper.targetPosition() );
        fsmState = STATE_MOVE_ITEM_IN;
      } else if ( stopMicroSwitch == HIGH && moveItemStepper.distanceToGo() > 0 ) {
