Add state to thread data