Rename get_token function to be more explicit