Preparing the automation script