Trying to use a table as a lookup for user generated data passed in externally.
tab = { [\'on\'] = function(x) x=x+1 return x end, [\'off\'] = function(x