Started adding a better rising edge detector