Update mainFunctions.py