Added functions to parse binary streams.