Timing and exception methods added.

Support timing and exception handling added.