Changed pulldown resistors from 10k to 47k for the input optocouplers