Allow both callback and stream to be passed.