Updated bash functions.