Fixing lua support, still not quite working