Added some debug statements and match footer if the row indexes match