Output writes to file, performance increased significantly, and testing with non-text files