Add saving function for therapy editing