Thanks for the quick response, it saved some of my hair :-)

Before I take the s/w route I'll try adding a capacitor to make an RC network (filter) to the circuit and see if that helps.