No need to use a while() loop if we're going only going to use the first structure of the caps ... CID #1341748