If applicable and under the necessary conditions, the court can order the enforcement of a measure instead of or in addition to the sentence. On the one hand, a measure is intended to meet the treatment needs of the perpetrator, and on the other hand it takes into account the public's need for security. The following measures are applied under Swiss Criminal Law: