Renamed some methods for clarity & wrote code to track open streams.
Add parameter to determine if stream is active.