Changed IsKnownType function.