Improved resolution selection.