Added some debugging with timing.