Modular control script