Added internal timer thread