Updated bash functions file