Added support for the snapshot option.