Added method getSnapshot()