Modified to read and compare cvs