Added automatic timing.