Autofocus (fixes #39).