Done with header basically and the thread part too