Hi, it seems function gen_snapshot! is not working, as function SW_update!() requires 3 arguments, but only 2 are given.