Bash Script Functions With Variables