Refactoring, add prompt for SPM package