Added debug for oauth