Shuffling files around for merging PIM