More logging & better attempt counting