Exposed commands to Lua. (This has thread issues if not used properly!)