Before single thread for In and Out