Added the tuples_to_pairtable function
Removed debug statements