Added support for lua scripts in tf

- Working and tested for few years