Added code to persist the stream id etc to the users area