Improving model maintenance script.