Better autofocus solution