Added getAccessToken functions.