     qsort(cmds, count, sizeof(motor_command), compare);
 
     for(i = 0; i < count; i++)
-        dprintf("%05u: motor %d on, %u ms\n", t, cmds[i].motor, cmds[i].duration);
+        dprintf("motor %d on, %u ms\n", cmds[i].motor, cmds[i].duration);
     
     // turn motors on
     for(i = 0; i < count; i++)
     {
         if (cmds[i].motor == 0)
             digitalWrite(8, HIGH);
+
         if (cmds[i].motor == 1)
             digitalWrite(9, HIGH);
+
         if (cmds[i].motor == 2)
             digitalWrite(10, HIGH);
     }

            }
        }
        if (cmds[i].motor == 0)
            digitalWrite(8, LOW);
        if (cmds[i].motor == 1)
            digitalWrite(9, LOW);
        if (cmds[i].motor == 2)
            digitalWrite(10, LOW);
    }
}


            // If the button is pressed during dispense, STOP!
            if (digitalRead(2) == LOW || digitalRead(3) == LOW)
            {
                stop_all();
                
                // Wait until no more buttons are pressed
                while(digitalRead(2) == LOW || digitalRead(3) == LOW)
