Added retry to token acquire