Added a more 'stream-like' function for parsing server data.