Updating energy threshold