Added debug flag for renderer logging.