Added timing code.