Added a timer thread