Begin GenerateToken implementation.