Included freeing stream to clear all memory leaks