Linked together reference subtraction and nonlinearity cor in run_pipe