Added comments to describe what this script does