I was thinking of replacing T1 and T2 with Optocouplers.