I am trying to write the function including read -p, however, for some reason the read -p always show first before other command, although other commands are before read -p.