Moved selection mode check to service.