Change getStreamData to return data not serialized.