Fix timing code.