Modify the sequence between user/program mode