copy everything in the script to use in program
it keeps reseting timer when code starts but when code stops, timer keeps going so that how it works.