Add getQuery and getTokens method in the interface