Editted function.lua