Add while loops and generalize wildcard finder method