Add pre and post transformation time measurements.
Better error reporting