A method of monitoring and controlling the freezing and thawing of a drug substance partially or fully surrounded by a temperature control medium. The heat flow between the drug substance and the temperature control medium is measured and controlled to create a uniform ice crystal structure to minimize any degradation of the drug substance being frozen and thawed.