Changing the .sh script for post processing