Implement "While" command, reorganize code, remove error handlers.