Improved the readability of the script