Add a lua implementation