New functions for Stream and ParStream