Replace type of lookup-func's return-value