Make lookback/threshold configurable, instead of just looking configurable