Add length extraction