Baseline correction code refactored. It is more efficient, now.