Updated to C++11.