A thermal dose controller for laser interstitial thermal therapy