Eliminate serial debugs in cpp file