Added lua mode