Changes made to script for Linux execution.