Added the time counter; can open/close the right number of seconds when interrupted. Trying to add motor overcurrent.