Modified the shell script for transmission to improve usability. Added functionality to throw exception if persistence fails.