A method for controlling energy applied to tissue as a function of at least one detected tissue property includes the initial step of applying energy to tissue. The method also includes detecting a phase transition of the tissue based on a detected rate of change in the at least one detected tissue property. The method also includes adjusting the energy applied to tissue based on the detected rate of change to control the detected phase transition.