Seperated the threads for readability
Added more programs to control.