Add timer debug code