Added a lua mode