Update the program mode flags