Script planning