Update bash functions