Bash shell Helper functions