Add function printAllEntries