Rewrote lookup.