Need to check for errors before tryin to access the name of the package.