Converted from sh to bash.