String formatting.
TimeSpan generation.
Using SqlWriter to support indentation.
Code cleanup.
Implemented HistoryOperation handling.
Handling SPs.
Formatting.