Added optocouplers to mosfet outputs