 			ChangeBrightness(1);
 			PushedAnyButton();
 		}
+		if (results.value == 0xFF6897)
+		{
+			if (backlightOnForButton)
+			{
+				IncreaseAlarmHour();
+				PushedAnyButton();
+			}
+			else
+			{
+				PushedAnyButton();
+			}
+		}
+		if (results.value == 0xFF9867)
+		{
+			if (backlightOnForButton)
+			{
+				IncreaseAlarmMinute();
+				PushedAnyButton();
+			}
+			else
+			{
+				PushedAnyButton();
+			}
+		}
+		if (results.value == 0xFFB04F)
+		{
+			if (backlightOnForButton)
+			{
+				ToggleAlarm();
+				PushedAnyButton();
+			}
+			else
+			{
+				PushedAnyButton();
+			}
+		}
 		irrecv.resume();
 	}
-	// delay(100);
-}
-
-// Most of the code here is to make buttons work well. See lines 225-226, 244-245, 263-264 for what happens on button press.   
-// https://www.arduino.cc/en/Tutorial/Debounce 
-void ListenForButtonPress()
+	//delay(100);
+}
+
+void ListenForButtonPress() //https://www.arduino.cc/en/Tutorial/Debounce
 {
 	readingBtnAlarmHour = digitalRead(btnAlarmHour);
 	readingBtnAlarmMinute = digitalRead(btnAlarmMinute);

	return((val / 16 * 10) + (val % 16));
}

// Defining a special character to use as brightness icon
byte sunCharacter[8] = {
	0b00000,
	0b00100,

const int ledMosfet = 6;

long alarmTurnedOnAt = 0;
long alarmDuration = 10800000; //3 hours.
long alarmStepTime = 0;

long pushedButtonAt = 0;
