Working on the flag variables