[Scripting] Added label tables and function. Added more globals.