A method for controlling energy applied to tissue in two or more states as a function of a detected tissue property is provided. The method includes the steps of: determining an initial value of the detected tissue property, recursively processing the detected tissue property to obtain an averaged value thereof, updating the recursively processing step with the initial value of the detected tissue property and transitioning between two or more states based on a comparison of averaged values obtained by two or more recursive filters.