Added option to wait for low level API is reading file.