Autofocus procedure explained in comments.