   // Initialise LCD
   initLCD();
 
+  // Initialise fan
+  pm(FAN_PIN, OUTPUT);
+
   // Initialise motors
   sX.begin();
   sY.begin();


// TODO Implement these functions
/* void flashled() {} */
/* void fan(bool operation) {} */
/* bool xswitch() {} */
/* bool yswitch() {} */
/* bool zswitch() {} */


    tone(BUZZ_PIN, sindex, pindex);
    return true;
  } else if(mindex == 104) {
    // Set temperature
    in = trim(in);
    int sindex = getIndex('S', in);

    if(sindex == INT_MIN) {
      out.msg(1, "Parameter S Missing");
      return false;
    }

    temperature.celcius = sindex;
    return true;
  } else if(mindex == 106) {
    // Fan on
    temperature.operation = true;
    return true;
  } else if(mindex == 107) {
    // Fan off
    temperature.operation = false;
    return true;
  }

  out.msg(1, "Incorrect/Unsupported G-Code entered");
