Updated stream.c