Added iostream include for std::cerr