   unsigned long currentMillis = millis();
   
 
-  if((currentMillis - timeLastPressedMiddleButton) < MIN_TIME_BETWEEN_BUTTON_PRESSES){
+  if((currentMillis - timeLastPressedRightButton) < MIN_TIME_BETWEEN_BUTTON_PRESSES){
     return;
   }
    
-  timeLastPressedMiddleButton = currentMillis;
-  
-  Serial.println("Time Set Button Pressed");
+  timeLastPressedRightButton = currentMillis;
+  
+  Serial.println("Right Set Button Pressed");
    
   switch(currentState)
   {

void processLeftButtonPressed(){
  unsigned long currentMillis = millis();
  
  if((currentMillis - timeLastPressedRightButton) < MIN_TIME_BETWEEN_BUTTON_PRESSES){
    return;
  }
  
  timeLastPressedRightButton = currentMillis;
  
  Serial.println("LCD Off Button Press");
  
  switch(currentState)
  {

void writeDateTimeToDisplayBuffer(DateTime now, boolean blinkOn){
  display.setTextSize(4);
  display.setCursor(0,0);
  String timeString = generateTimeString(now.hour(), now.minute(), now.second(), blinkOn);
  display.print(timeString);
  
  char buff[3];


  if(!(currentState == SETTING_TIME && settingTimeProcess == T_SECOND && !blinkOn)){
    display.setCursor(116,22);
    sprintf(buff, "%02d", now.second());
    display.setTextSize(1);
    display.println(buff);
  }
  

  display.setCursor(0,34);
  display.setTextSize(1);
  String dateString = generateDateString(now.year(), now.month(), now.day(), blinkOn);
  display.println(dateString);

}



String generateTimeString(int hour, int minute, int second, boolean blinkOn){
  char buff[3];
  
  String hourString;
  
  if(currentState == SETTING_TIME && settingTimeProcess == T_HOUR && !blinkOn){
    hourString = "  ";
  } else {
    sprintf(buff, "%02d", hour);
    hourString = buff;
  }

  String minuteString;
  if(currentState == SETTING_TIME && settingTimeProcess == T_MINUTE && !blinkOn){
    minuteString = "  ";
  } else {
    sprintf(buff, "%02d", minute);
    minuteString = buff;
  }


  String result = hourString + ":" + minuteString;

  return result;
}

String generateDateString(int year, int month, int day, boolean blinkOn)
{
  String dayOfWeek = getDayOfTheWeek(year, month, day);
  String dayString;
  String monthString;
  String yearString;
  
  
  if(currentState == SETTING_TIME && settingTimeProcess == T_DAY && !blinkOn){
    dayString = "  ";
  } else {
    dayString = String(day);
  }
  
  if(currentState == SETTING_TIME && settingTimeProcess == T_MONTH && !blinkOn){
    monthString = "   ";
  } else {
    monthString = getMonth(month);
  }
  
  if(currentState == SETTING_TIME && settingTimeProcess == T_YEAR && !blinkOn){
    yearString = "    ";
  } else {
    yearString = String(year);
  }
  
  
 
  String result = dayOfWeek + ", " + dayString + " " + monthString + " " + yearString;
  
  return result;
}
