Stream processor