Update type guessing logic.