Add main2 that uses timerFunc