Shouldn't we also set tempBasal to null here before we leave? You're basically saying that this tempBasal is being discarded, right?