Added :type detection.