UPdate and testing for flags