Updated snapshot functionality but it still doesn't work