Removing the need for a temporary file
added feature to list out snapshots