Moving bash functions over.