A method for operating an electrosurgical generator is disclosed, including receiving a high level algorithm at an electrosurgical generator including a processor, a power supply, and a radio frequency amplifier, the high level algorithm including an interpreted language script, processing the interpreted language script through an interpreter engine executed by the processor, selecting at least one of a plurality of configuration files stored in the electrosurgical generator based on the interpreted language script to effect a desired mode of operation, and executing the interpreted language script based on the selected one of the plurality of configuration files to generate instructions which cause the electrosurgical generator to control at least one of the power supply and the radio frequency amplifier to generate radio frequency energy according to the selected one of the plurality of configuration files.