Replaced some printf calls with std::cout