Cleans up timing code.