Modified "EditScript" routine.