Added thread id to thread class