Add a function to prepare a snapshot of a list.