I guess you need a tutorial on how to organize your thread.

Thanks anyway.