Updates to work bash functions