Added fetchEntriesByHeaders