Add custom localLookup function, allowing sorting, etc