Implement smart default for the :result option