Create a func to find all matching Entry_structs from the supplied template.
Rename matches_entry_filter.
Add get_expiry_and_lease func.