Small tweak to save logic in 18004_Kaisan.lua