Refine r141689 with a tri-state variable.