Added minimally successful attempt at simulating streams for testing purposes.