STABLE

Tweaked the code to work with the OpAmp