added a lookback period for when it fails to run