Added support for snapshot.