Removed redundant data structures. Pulled in lua.