Support type-detecting.