Added code for simple streaming server