Add Timer functions, emulated with thread.