Add timing code for informative and debug purposes.