Removed redundancies with C++ standard library.