Added threaded timer implementation