Script to automate the task.