Function resolveImports