Update scan.lua