Guys, thanks a lot for all the information and guidance. Now I know why that particular line of code was never get executed. I changed the code and using flag to track the previous security mode (in this case AWAY) and now the OMNI runs exactly like what I want. Again, many many thanks. Best Regards, Wijoyo