Move timer initialization of thread.
Delete useless struct definition.