Fixed warning by adding newToken method