Fixed it so function calls can be used in running the program.