So you mean that I should do this better in the thread_init function?!