Keeping track of already evaluated tokens to avoid infinite loop