Base code for Streaming support

Added a function and some other small changes to help support the
addition of streaming data.