Implement finding locode by name and function