Add a new function to get pkgid async