Adding support for wildcards.

We need a for-loop now to do some manual twiddling of the looping when
we encounter a wildcard.