Amended script for improved readability