Initial implementation of lookup.