Consolidating control scripts