Reimplemented csv_parser to better handle big datasets