Guess max cell size automatically.