Modified to support currently agreed-upon file formats.