   moveDoorDown(REVOLUTIONS_TO_CHANGE);
 }
 
-void moveDoorUp(int revolutions) {
+void moveDoorUp(long revolutions) {
   updateDoorStatus(DOOR_MOVING_UP, DOOR_POSITION_UNKNOWN);
   moveDoor(revolutions);
   updateDoorStatus(DOOR_STATIONARY, DOOR_POSITION_UP);
 }
 
 // Start moving door down
-void moveDoorDown(int revolutions) {
+void moveDoorDown(long revolutions) {
   updateDoorStatus(DOOR_MOVING_DOWN, DOOR_POSITION_UNKNOWN);
   moveDoor(-revolutions);
   updateDoorStatus(DOOR_STATIONARY, DOOR_POSITION_DOWN);

// Declare the clock
RTC_DS1307 RTC;

void setup() {

  // initialize serial and wait for port to open:

  delay(TICK);
}

// Main button handling function
void handleButton() {
  int button = pressedButton();
  if ( button == PIN_MODE_BUTTON ) {
