Lua scripts now in custom functions!