Change naming convention
Use bitwise operation flag to on/off logging.