Implement lookup-func (80%)