More Lua functions

Added some Lua functions that might be useful