Added multiple autofocus attempts