Added lua mode.