Implemented basic snapshotting.