Switched from raw to unique_ptr.