Modified to use Spl_FileObject rather than fgetcsv command