Adding some Lua methods for the menu.