Added the lua conversion for the previous commit