Added check for existing package