Added the script and explanation in README.md