The present disclosure is directed toward an electrosurgical apparatus including an electrosurgical generator that may be coupled to an electrosurgical applicator. In one aspect of the present disclosure, a controller of the electrosurgical generator is configured to execute a dynamic leakage current compensation algorithm or function to compensate for the leakage current of an electrosurgical applicator and accompanying cable coupling the electrosurgical applicator to electrosurgical generator. In another aspect of the present disclosure, the controller of the electrosurgical generator is configured to execute a dynamic radio frequency modulation algorithm or function to dynamically control the crest factor of the output waveform of the electrosurgical generator based on the measured impedance across an active and return terminal of the electrosurgical generator.