Made work for large v5d file creation and reading.