Adapted Grubb to account for daily variations