       break;
 
     case ENABLED:
-      if (!(opto1.state()))
+      if (!(opto1.state())) {
+        Log.printf("Green button on safety contactor pressed.\n");
         machinestate = POWERED;
+      };
       break;
 
     case POWERED:

    machinestate = WAITINGFORCARD;
  };

  if (machinestate <= WAITINGFORCARD)
    haveSeenPower = false;

  if (laststate < POWERED)
    digitalWrite(RELAY_GPIO, 0);
  else

  button1.update();
  button2.update();

  if (laststate != machinestate) {
    Debug.printf("Changed from state <%s> to state <%s>\n",
                 state[laststate].label, state[machinestate].label);
