Currently, the scheduler is decremented the same variable that is used to store the user set number of iterations. Instead, there should be a counter that should be decremented instead.
Upon the process being added the value of the user set iterations should be used to initialize the counter value.
#1