Changed getting access token method