Updated the code to allow a wild card.