Function computes optional baseline window.