Can you make the clearState=false version a separate function?  It needs to be absolutely clear that code using it is doing something unusual.