Added the minipulation to the mainFunction.py and worked on trying to get the threading to work correctly.