Added code for reading from a file a chunk at a time.