Update File writer: add Lua script