Modified BaselineTask to create baselines also with negative lags (i.e., in the past)