Added flag for restoring packages