Added constants WSTATE_*.
Added constants WSTATE_*.