Rewrote writing to TempoDB.