Replaced switch statements in LuaLibraries class.