Created functions for the access tokens, added them to main.