Added OAuth functionality