Added shell script exit code based on result