Generalized the script and created a user script.