This should be all the changes to make the inf loop stuff work. Also implemented the option for the amount of time before a program is deemed to be infinite