gui: Conform to $ret and $result conventions.