Added a param that allows us to switch between local and global snapshotting.