Add to coordinate and length extraction loop