else if (result=failure)     inform user of failure     unfreeze the gui     reset result   else wait a spell }