Udated from_stream for Tm for LWS changes.