Changes to main_prog_new.py