Designing the control scripts