Added code to store snapshots every 15 seconds