Added getAccessToken functionality