Initial version of stream parser