Changed raw new with Utils::makeUniquePtr.