Before changing to script
Single thread done