Simplifying type detection