Removed some calls to std::cout.