Fixed issue with processing logic. Gain and bais now appear to be working.