Update mainfunction.txt