Updating: supporting ATS_MAINATSFLAG.