Updated directory so that it is not hard coded. Just run the script and it works.