Added buildmode logging.