Trying to use bash functions