Changed program to skip matches that aren't found.