Script for automation