I am using the script below provided by Manolo in a previous post, but I am struggling with how to make a couple of modifications.