Buf fix for lookup tool.
Small fix for lookup tool. Adapted examples.