Added some Lua functions

Added some Lua functions that might be useful