Added main thread

thread added