Move the repeating task into MainScript.py