Add reference resolution for modules