Modify NRFn to allow arbitrary choice of background subtraction.
lines 721,722,724 + fn definition