Added snapshot code snippets