Added Lua and Rust implementations