Limit snapshotted files

Please review carefully.

I have tested this manually.