Do you want to split HourLoopRange and run in separate processes?
Also, you have 4 "if bug==1" statements in a row. If you are entering text from the keyboard, that will be your hangup.
Also, you have 4 "if bug==1" statements in a row. If you are entering text from the keyboard, that will be your hangup.