Finished lua support. May be bugs.