Adding flag for message logging.