Moved Lua execution out to file.