Updating type detection to match the # ( name ; value ) function