Script generator