Added lua tg_run()