Added bash functions