Extracted SignalProcessor base code.