Better dimension guessing