Added lua check