All of SVD converted to Lua (testing forthcoming)