Added switch for less compares.