Implement lookup-func (DONE)