Stream_state seems to work for simple cases