Added some bash functions