Added the mutex stuff, had tarter clea becasue i can't hit ns right