Updating with notes to get the script to run on Linux.