Added the snapshot creation part