Some functions for the Stream and Processor modules.