added DataHub Integration, customID and deviceID logging.