std::stringstream is no longer needed. PI -> M_PI.