Setup essential variables used in the program.