Implemented snapshot cleaning