Added snapshot-sending code