- added ACS CheckFlag function.