Add some more debugging for the snapshot hook