Working version, fetches access token