Added some logging to StorageWriter