Proper selection handling.