Commented the script for clarity