Update a few scripts with metatables