Cleaned up CWFlags