Added OAuth support.