Current Status

The script has been completed except for a bug where the value of m is
changed when passes through the function “time_loop().” This occurs
even through m is not referenced in the function, so I am unsure about
how to fix it.