Work on sets rather than files