Support setting flags for sws.