When a session is saved, filenames are stored as Templex variables. When a session file is loaded, the program checks for Templex statements in the session file. If any Templex statements are found, they are evaluated prior to executing the session statements. This order of processing provides additional programming capabilities to automate the generation of a work session. The mathematical, logical, and looping capabilities within Templex can be used to perform many operations such as generating multiple page, window, and plot blocks or logically decide if a plot is required based on a mathematical calculation.