Reorg the timer initialisation and more debug.