Changed logging to use unique_ptr