Combined the getting of token and return info into one struct and function.