Added code to track global flag messages to global log file