Probably should refactor make_snapshot so that the code which gets reused for making binary snapshots doesn't need to be copy-pasted.