Added last_alert|confirm|prompt, to ease some tests. Added nr retries instead of fixed 100. Small fixes around.