Add some utility functions from the old Listaller codebase