Added run and escape code for running the code and manually checking the finish. This code is for the case that number of jobs is equal to the number of workers