Added support for files larger than 2GB