Before changing to script
Single thread done
Single thread done
Single thread done
 before changing everything to float