Possibly fixed a bug in a call to extend_match.  Currently removing extra printf statements to confirm that the bug is fixed