% DELAY - Just keep calling update
state = 0;
while 1
in = input('Enter 0, 1, absent, or quit: ', 's');
if (strcmp(in, 'quit') | strcmp(in, 'exit'))
break;
end
[state, output] = update(state, in);
disp(output);
end