Add basic references+resolving.